package top.codervan.yygh.hosp.repository;

import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.stereotype.Repository;
import top.codervan.yygh.model.hosp.Hospital;

import java.util.List;

/**
 * @Author: van
 * @Date: 2022/2/18 15:21
 */
@Repository
public interface HospitalRepository extends MongoRepository<Hospital,String> {


    Hospital getHospitalByHoscode(String hoscode);

    List<Hospital> findHospitalByHosnameLike(String hosname);
}
